package com.zyn.rsgl.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("todos")
public class Todos {
    private static final long serialVersionUID = 1L;

    @TableId("id")
    private String id;

    /**
     * 员工id
     */
    @TableField("user_id")
    private String userId;

    /**
     *截止时间
     */
    @TableField("due_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime dueTime;

    /**
     * 备忘录内容
     */
    @TableField("content")
    private String content;

}
